package com.saunter.extendModel;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.saunter.model.User;
import jdk.nashorn.internal.ir.annotations.Ignore;

import java.sql.Date;

public class UserExtend extends User {
    private JobExtend job;

    public UserExtend(String idNum, String passwd, String name, Date birthdate, Integer sex, Integer jobId, String phone, String email, Integer status, Date createTime, String remark) {
        super(idNum, passwd, name, birthdate, sex, jobId, phone, email, status, createTime, remark);
    }
    public void setJob(JobExtend jobExtend) {
        this.job = jobExtend;
    }
    public String getJobStr() {
        return this.job.getDepartment().getName() + "/" + this.job.getName();
    }

    public JobExtend getJob() {
        return job;
    }
}
